package com.galeno.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author galeno
 * @Title:
 * @Description:
 * @date 2021/7/2523:01
 */
public class FastJsonDemo3 {
    public static void main(String[] args) {
        MovieBean movieBean=new MovieBean();
        movieBean.set(1,4.5,"123456",1001);
        String s = JSON.toJSONString(movieBean);
        System.out.println(s);
        MovieBean movieBean1 = JSON.parseObject(s, MovieBean.class);
        System.out.println(movieBean1);

    }

}
